package org.main.provider.controller;

import org.main.bean.entity.Hmessage;
import org.main.bean.entity.User;
import org.main.provider.Dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/User")
public class UserController {
    @Autowired
    private UserDao userDao;

    @RequestMapping("/query")
    public List<User>query(){
        return userDao.findAll();
    }





}
